/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package action.administration;

import static com.opensymphony.xwork2.Action.SUCCESS;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;

/**
 *
 * @author Thai Ha Cong
 */
@Namespace("/Administration")
public class MappingAction extends ActionSupport {
    public String title;
    
    public MappingAction() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    
    @Override
    public String execute() throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
    @Action(value = "home", results = {
        @Result(name = "success", location = "/administration/shome.jsp")
    })
    public String admin() {
        this.title = "Administration Home";
        
        return SUCCESS;
    }
}